package com.ovopark.organize.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateUser;

/**
 * @Description: 加盟商立项模板选项数据
 * @Author:zll
 * @Date:
 */
public interface FranchiseesApprovalTemplateUserService {

    /** 
     * @description: 保存或更新
     * @param: [fieldUser]
     * @return: com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateUser
     * @author wxb
     * @date: 2024/6/4 20:02
     */ 
    FranchiseesApprovalTemplateUser saveOrUpdateById(FranchiseesApprovalTemplateUser templateUser);

    /**
     * @description: 获取字段值
     * @param: [groupId, templateId, approvalId, version]
     * @return: com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateFieldUser
     * @author wxb
     * @date: 2024/6/3 15:46
     */
    FranchiseesApprovalTemplateUser getTemplateUser(Integer groupId, Integer templateId, Integer addressId, String version);

    /** 
     * @description: 获取
     * @param: [templateUserId]
     * @return: com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateUser
     * @author wxb
     * @date: 2024/6/5 10:18
     */ 
    FranchiseesApprovalTemplateUser getById(Integer templateUserId);

    /** 
     * @description: 删除
     * @param: [id]
     * @return: void
     * @author wxb
     * @date: 2024/6/4 20:01
     */ 
    void deleteById(Integer id);

    /**
     * @description: 地址下的评估记录 分页
     * @param: [page, groupId, addressId]
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.ovopark.organize.server.model.entity.FranchiseesRegistration>
     * @author wxb
     * @date: 2024/6/4 18:59
     */
    IPage<FranchiseesApprovalTemplateUser> page(Page<FranchiseesApprovalTemplateUser> page, Integer groupId, Integer addressId);

}
